package com.zzl.bonds.ticket.constant.type;

/**
 *
 * 1，开立申请 2，转让申请，3，融资申请
 * @author : gull
 * @date : 2022/2/24 20:06
 */
public enum LogActionTypeEnum {
    /**
     * 1，开立申请 2，转让申请，3，融资申请
     */
    TICKET_TYPE_OPEN("1", "开立"),
    TICKET_TYPE_TRANSFER("2", "转让"),
    TICKET_TYPE_FINANCE("3", "融资"),
    ;

    private String code;
    private String value;


    LogActionTypeEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(String code) {
        for (LogActionTypeEnum statusEnum : LogActionTypeEnum.values()) {
            if (statusEnum.code.equals(code)) {
                return statusEnum.value;
            }
        }
        return "";
    }


    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
